<?xml version="1.0"?>
<Mission xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Mission.xsd">
  <Specification>
    <name>Twitter2Database</name>
    <version>1.0.0.0</version>
    <author>Mathias Mielitz</author>
    <description>Backup tweets in your local database.</description>
    <tags>twitter,rss-feeds,database,sqlite,tweets,backup</tags>
  </Specification>
  <Blueprint>
    <Plugin Name="ReadRssFeedPlugin" Version="1.0.0.0" File="CSharp\DefaultPlugins.dll" ID="0">
      <Input>
        <Package Name="URLInfo">
          <Data>
            <Row>
              <NumFeedItems>20</NumFeedItems>
              <URL>http://twitter.com/statuses/user_timeline/223506219.rss</URL>
			  <Username></Username>
			  <Password></Password>
            </Row>
          </Data>
        </Package>
      </Input>
      <Output>
        <Package Name="RSSOutput" />
      </Output>
    </Plugin>
    <Plugin Name="ExtractPlugin" Version="1.0.0.0" File="CSharp\DefaultPlugins.dll" ID="1">
      <Input>
        <LinkedPackage Name="Data2Extract" FromPluginID="0" FromPackage="RSSOutput" />
        <Package Name="ExtractRules">
          <Data>
            <Row>
              <ColumnName>Description</ColumnName>
              <Validation>contains{e}</Validation>
            </Row>
          </Data>
        </Package>
      </Input>
      <Output>
        <DynamicPackage Name="ExtractedData" />
      </Output>
    </Plugin>
    <Plugin Name="ReadSQLiteDBPlugin" Version="1.0.0.0" File="CSharp\DefaultPlugins.dll" ID="2">
      <Input>
        <Package Name="SQLightDBFile">
          <Data>
            <Row>
              <FilePath>C:\twitter.db</FilePath>
              <TableName>openData</TableName>
              <Where>1</Where>
			  <DeleteReadData>True</DeleteReadData>
            </Row>
          </Data>
        </Package>
      </Input>
      <Output>
        <DynamicPackage Name="DBData" />
      </Output>
    </Plugin>
    <Plugin Name="MergeUniqueRowsPlugin" Version="1.0.0.0" File="CSharp\DefaultPlugins.dll" ID="3">
      <Input>
        <LinkedPackage Name="OriginData" FromPluginID="2" FromPackage="DBData" />
        <LinkedPackage Name="NewData" FromPluginID="1" FromPackage="ExtractedData" />
      </Input>
      <Output>
        <DynamicPackage Name="MergedData" />
      </Output>
    </Plugin>
    <Plugin Name="WriteSQLiteDBPlugin" Version="1.0.0.0" File="CSharp\DefaultPlugins.dll" ID="4">
      <Input>
        <Package Name="SQLightDBFile">
          <Data>
            <Row>
              <FilePath>C:\twitter.db</FilePath>
              <TableName>openData</TableName>
            </Row>
          </Data>
        </Package>
        <LinkedPackage Name="DBData" FromPluginID="3" FromPackage="MergedData" />
      </Input>
      <Output />
    </Plugin>
  </Blueprint>
</Mission>